package cn.s1995.sloth.bizs.oo.vo;

import cn.s1995.sloth.app.api.entity.AppUser;
import cn.s1995.sloth.bizs.entity.Order;
import io.swagger.v3.oas.annotations.media.Schema;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
public class OrderVO extends Order{

	/**
	 * 产品明细项
	 */
	@Schema(description = "订单明细")
	private List<OrderItemVO> orderItemList;

	/**
	 * 用户
	 */
	private AppUser user;

	/**
	* 自动取消时间
	*/
    @Schema(description = "自动取消时间")
    private LocalDateTime autoCancelTime;

    @Schema(description = "订单下是否存在退款记录")
    private boolean hasRefund;

//	/**
//	 * 订单国家码
//	 */
//	@TableField(exist = false)
//	private String orderAddressCode;
//
//	/**
//	 * 收货人手机号码
//	 */
//	@TableField(exist = false)
//	private String orderAddressPhone;
}
